import Vue from 'vue'

// 导入
import Vuex from 'vuex'
import xian from '@/store/modules/xian'
import chengdu from '@/store/modules/chengdu'
import express from '@/store/modules/express'

// 注册
Vue.use(Vuex)

// 实例化
const store = new Vuex.Store({
   state: {},
   mutations: {},
   actions: {},
   getters: {
      totalCount(state) {
        return state.xian.count + state.chengdu.count
      }
   },
   modules : {
      xian,
      chengdu : chengdu,
      express : express
   }
})
export default store